import {listVipType,getIncomeStatistics} from '@/api/vip/vip'

const vipType = {
    actions: {
        // 获取vip类型列表
        ListVipType({ commit }) {
            return new Promise((resolve, reject) => {
                listVipType().then(response => {
                    resolve(response)
                }).catch(error => {
                    reject(error)
                })
            })
        },
        // 获取收益统计数据
        GetIncomeStatistics({ commit }) {
            return new Promise((resolve, reject) => {
                getIncomeStatistics().then(response => {
                    resolve(response)
                }).catch(error => {
                    reject(error)
                })
            })
        }
    }
}
export default vipType